package org.lanqiao.information;

import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

public interface IAnswerService {

    IPage<Answer> pageListByUserId(Integer pageNum, Integer pageSize, Map<String, String> queryMap);

    void add(Answer answer);

    void logicallyDelete(Integer ansId);

    void physicallyDelete(Integer andId);

    void update(Answer answer);

    List<Answer> findAll();

    List<Answer> findAll(Integer userId);

    List<Answer> findList(Map map);

    IPage<Answer> pageAll(Integer pageNum, Integer pageSize);

    IPage<Answer> pageList(Integer pageNum, Integer pageSize, Map<String, String> queryMap);

    void inform(Map map);

    void toggleLike(Map map);

    IPage<Answer> pageAll(Integer pageNum, Integer pageSize, Integer userId);

    void informSuccess(Integer ansId);

    void informFail(Integer ansId);

}
